package com.example.template.course;

public class JavaCourse extends NetworkCourse {

    private boolean needHomework;

    public JavaCourse(boolean needHomework) {
        this.needHomework = needHomework;
    }

    public JavaCourse() { }

    @Override
    protected void checkHomework() {
        System.out.println("检查 java 作业");
    }

    @Override
    protected boolean needHomework() {
        return this.needHomework;
    }

}
